package com.example.campuslink.viewModel

import android.content.Intent
import androidx.lifecycle.MutableLiveData
import com.example.campuslink.ui.activity.PublicInvitationActivity
import com.example.campuslink.ui.activity.ai.AboutUsActivity
import com.example.campuslink.ui.activity.ai.ImageProduceActivity
import com.example.campuslink.ui.activity.ai.InquiriesActivity
import com.example.campuslink.ui.activity.userOperation.LoginActivity

class MainViewModel : BaseViewModel() {
    private val _vpIndexLiveData = MutableLiveData<Int>(0)
    val vpIndexLiveData = _vpIndexLiveData

    fun setVpIndex(index: Int) {
        _vpIndexLiveData.value = index
    }

    fun jumpToPublicInvitationActivity() {
        startActivity(Intent(), targetClass = PublicInvitationActivity::class.java)
    }

    fun exit() {
        startActivity(Intent(), targetClass = LoginActivity::class.java, true)
    }

    fun jumpToInquiriesActivity() {
        startActivity(Intent(), targetClass = InquiriesActivity::class.java)
    }

    fun jumpToAboutUsActivity() {
        startActivity(Intent(), targetClass = AboutUsActivity::class.java)
    }

    fun jumpToImageProduceActivity() {
        startActivity(Intent(), targetClass = ImageProduceActivity::class.java)
    }
}